<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Remote Control: Client Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Remote Control
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_client.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_client-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Client Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_client.html" title="The Client manages all devices and implements a menu for using the remote control.">Client</a> manages all devices and implements a menu for using the remote control.  
 <a href="class_client.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_client_8h_source.html">Client.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Client:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_client.png" usemap="#Client_map" alt=""/>
  <map id="Client_map" name="Client_map">
<area href="class_object.html" title="Common Baseclass for all other classes." alt="Object" shape="rect" coords="0,0,49,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9de8da96f3e9d600955ec1b6e5f6b7e6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a9de8da96f3e9d600955ec1b6e5f6b7e6">AddDevice</a> (<a class="el" href="class_i_device.html">IDevice</a> *dev)</td></tr>
<tr class="memdesc:a9de8da96f3e9d600955ec1b6e5f6b7e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a device to the client.  <a href="#a9de8da96f3e9d600955ec1b6e5f6b7e6"></a><br/></td></tr>
<tr class="separator:a9de8da96f3e9d600955ec1b6e5f6b7e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4adc2108ce9f051b7f6cb150894a419c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#a4adc2108ce9f051b7f6cb150894a419c">ProgramRemoteControl</a> ()</td></tr>
<tr class="memdesc:a4adc2108ce9f051b7f6cb150894a419c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Program the remote control.  <a href="#a4adc2108ce9f051b7f6cb150894a419c"></a><br/></td></tr>
<tr class="separator:a4adc2108ce9f051b7f6cb150894a419c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af90a95f5a7a60d04588c222d3817cfcf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client.html#af90a95f5a7a60d04588c222d3817cfcf">UseRemoteControl</a> ()</td></tr>
<tr class="memdesc:af90a95f5a7a60d04588c222d3817cfcf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function used for the interactive menu.  <a href="#af90a95f5a7a60d04588c222d3817cfcf"></a><br/></td></tr>
<tr class="separator:af90a95f5a7a60d04588c222d3817cfcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#aa3e791419d84c4c346ef9499513b8e00">~Object</a> ()</td></tr>
<tr class="memdesc:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">DTor of the <a class="el" href="class_object.html" title="Common Baseclass for all other classes.">Object</a> class.  <a href="#aa3e791419d84c4c346ef9499513b8e00"></a><br/></td></tr>
<tr class="separator:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#a86a84ed2d1207e5f8827165ac2941106">deleteObject</a> (<a class="el" href="class_object.html">Object</a> *obj)</td></tr>
<tr class="memdesc:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees the memory used by obj.  <a href="#a86a84ed2d1207e5f8827165ac2941106"></a><br/></td></tr>
<tr class="separator:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_client.html" title="The Client manages all devices and implements a menu for using the remote control.">Client</a> manages all devices and implements a menu for using the remote control. </p>
<p>This class is able to add devices to its device list and also programs the remote control. Programming the remote control contains a part of the test driver. The menu is used interactive. <a class="el" href="class_device.html" title="Header for the Device class.">Device</a> info can be output as well as undoing the last action and changing all available status of the devices.</p>
<dl class="section author"><dt>Author</dt><dd>Andreas Lehner </dd></dl>
<dl class="section date"><dt>Date</dt><dd>27.12.2012 </dd></dl>

<p>Definition at line <a class="el" href="_client_8h_source.html#l00029">29</a> of file <a class="el" href="_client_8h_source.html">Client.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a9de8da96f3e9d600955ec1b6e5f6b7e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::AddDevice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_device.html">IDevice</a> *&#160;</td>
          <td class="paramname"><em>dev</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a device to the client. </p>
<p>A device can be added to the list of the client. There is no limit for devices </p>

<p>Definition at line <a class="el" href="_client_8cpp_source.html#l00016">16</a> of file <a class="el" href="_client_8cpp_source.html">Client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4adc2108ce9f051b7f6cb150894a419c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::ProgramRemoteControl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Program the remote control. </p>
<p>This function plays a part of the test driver. It programs the slots of a remote control. </p>

<p>Definition at line <a class="el" href="_client_8cpp_source.html#l00026">26</a> of file <a class="el" href="_client_8cpp_source.html">Client.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af90a95f5a7a60d04588c222d3817cfcf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Client::UseRemoteControl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function used for the interactive menu. </p>
<p>User inputs will be asked for and depending on the input the output will follow. This includes output about state information of a device. Devices can be switched on/off and other states will also be executed on certain input. </p>

<p>Definition at line <a class="el" href="_client_8cpp_source.html#l00083">83</a> of file <a class="el" href="_client_8cpp_source.html">Client.cpp</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_client.html">Client</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
